package com.phonemica.utils;


public class CommonUtils {

	private static final String TAG = CommonUtils.class.getSimpleName();

	private static CommonUtils instance;

	private CommonUtils() {
	}

	public synchronized static CommonUtils getIntance() {
		if (null == instance) {
			instance = new CommonUtils();
		}
		return instance;
	}

//	public boolean isNetworkAvailable() {
//		if (null != GamesApp.self) {
//			ConnectivityManager cm = (ConnectivityManager) GamesApp.self
//					.getSystemService(Context.CONNECTIVITY_SERVICE);
//			if (cm != null) {
//				NetworkInfo theNetworkInfo = cm.getActiveNetworkInfo();
//				if (null != theNetworkInfo && theNetworkInfo.isConnected()) {
//					if (theNetworkInfo.getState() == NetworkInfo.State.CONNECTED) {
//						return true;
//					}
//				}
//			}
//		}
//		return false;
//	}

//	public void sendBroadcase(Intent intent) {
//		GamesApp.self.sendBroadcast(intent);
//	}
	
}
